﻿using Core.Domain.Directory;
using System.Data.Entity.ModelConfiguration;

namespace Data.Mapping.Directory
{
    public partial class CityMap : EntityTypeConfiguration<City>
    {
        public CityMap()
        {
            this.ToTable("City");
            this.HasKey(sp => sp.Id);
            this.Property(sp => sp.Name).IsRequired().HasMaxLength(100);
            
        }
    }
}
